public class Order {//确认订单并进行存储的实体集
    private int id;
    private String rname;
    private String cname;
    private int portion;
    private int time;
    private String address;
    private String state;
    private double sum;


    public Order() {  //无参构造器
    }

    public Order(int id, String rname, String cname, int portion, int time, String address, String state, double sum) {
        this.id = id;
        this.rname = rname;
        this.cname = cname;
        this.portion = portion;
        this.time = time;
        this.address = address;
        this.state = state;
        this.sum = sum;
    }//有参构造器

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getPortion() {
        return portion;
    }

    public void setPortion(int portion) {
        this.portion = portion;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }



    public void setState(String state) {
        this.state = state;
    }
    public String getState() {
        return state;
    }


    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }
}
